package com.cloudwise.gproject.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：卫子健
 * @date ：Created in 2021/3/19 20:15
 * @description：统一结果集
 * @modified By：
 * @version:
 */
@Data
@AllArgsConstructor//所有参数构造
@NoArgsConstructor//空构造
public class Result<T> {
    private int code;
    private String msg;
    private long count;
    private T data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
